<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>react 练习part05</title>
		<script src="../build/react.js"></script>
		<script src="../build/react-dom.js"></script>
		<script src="../build/browser.min.js"></script>
	</head>
	<body>
		<div id="app"></div>
		<script type="text/babel">
			var NoteList=React.createClass({
				render:function(){
					return (
						<ol>
							{
								React.Children.map(this.props.children,function(child){
									return <li>{child}</li>
								})
							}
						</ol>
					)
				}
			})
			
			ReactDOM.render(
				<NoteList>
					<span>hello</span>
					<span>world</span>
				</NoteList>,
				document.getElementById('app')
			);
		</script>
	</body>
</html>
